<?php
//$Id: session.php 167 2012-02-03 10:06:17Z tomqin@gmail.com $

/**
 * Session 配置文件
 *
 * @copyright		Copyright (C) 2010-2012 ARESCMS Inc.
 * @author			TomQin <tomqin@gmail.com>
 * @license			http://www.arescms.cn/license/
 * @package Core
 */

final Class Session
{
	private static $items = array();

	/**
	 * Get a configuration item.
	 *
	 * <code>
	 *		// Get the "session" configuration array
	 *		$session = Session::get('session');
	 *
	 *		// Get the "timezone" option from the "application" configuration file
	 *		$timezone = Session::get('application.timezone');
	 * </code>
	 *
	 * @param  string  $key
	 * @param  string  $default
	 * @return array
	 */
	public static function get($key, $default = null)
	{
		return isset(self::$items[$key]) ? self::$items[$key] : $default;
	}
}
?>